{include file="./headStart.tpl"}
<script type="text/javascript">
function goBack()
{
  window.history.back()
}
</script>
{include file="./headEnd.tpl"}
<input type="button" value="Back" class="table2" onclick="goBack()" style="cursor:pointer;"/> 
<center><font style="font-size: 16px"><b>Service Status Update</b></font></center><br/>
{if $complainServiceId > 0}
  <table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> Pending Complaint List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No.</td>
  	<td class="table1" align='center'><B>Customer</td>
  	<td class="table1" align='center'><B>System</td>
  	<td class="table1" align='center'><B>Target Date</td>
  	<td class="table1" align='center'><B>Service Charge</td>
  	<td class="table1" align='center'><B>Remarks</td>
  	<td class="table1" align='center'><B>Amount Collected</td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>
  </tr>
  {section name="sec" loop=$complainCallDetailArray}
  <input type="hidden" name="complainServiceId" value="{$complainCallDetailArray[sec].complainServiceId}" />
  <tr>
  <td class="table3" align="center">{$smarty.section.sec.rownum}</td>
  <td class="table3" align="center" id="tooltip"> {$complainCallDetailArray[sec].companyName}
    <span>Contact Person :{$complainCallDetailArray[sec].contactPerson1}<br/>
      Mobile :{$complainCallDetailArray[sec].mobile1}</span>
   </td>
  <td class="table3" align="left" NOWRAP>{$complainCallDetailArray[sec].categoryName}</td>
  <td class="table3" align="center">{$complainCallDetailArray[sec].targetedDate}</td>
  <td class="table3" align="right">{$complainCallDetailArray[sec].serviceCharge}</td>
  <td class="table3" align="left">{$complainCallDetailArray[sec].remarks}</td>
  <td class="table3" align="right">{$complainCallDetailArray[sec].amountCollected}</td>
  <td class="table3" ><a href="complainService.php?complete=1&&complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="buttonComp">Complete</a></td>
  <td class="table3"><a href="complainService.php?inComplete=1&&complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="buttonInComp"> InComplete</a></td>
  {sectionelse}
    {$msg}
  {/section}
  </tr>
  </table>
{/if}
{if $complainServiceId != -1 && $complainServiceId == 0}
  <table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> Pending Complaint List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No.</td>
  	<td class="table1" align='center'><B>Customer</td>
  	<td class="table1" align='center'><B>System</td>
  	<td class="table1" align='center'><B>Target Date</td>
  	<td class="table1" align='center'><B>Service Charge</td>
  	<td class="table1" align='center'><B>Remarks</td>
  	<td class="table1" align='center'><B>Amount Collected</td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>
  </tr>
  {section name="sec" loop=$complainCallDetailArray}
  <input type="hidden" name="complainServiceId" value="{$complainCallDetailArray[sec].complainServiceId}" />
  <tr>
  <td class="table3" align="center">{$smarty.section.sec.rownum}</td>
  <td class="table3" align="center" id="tooltip"> {$complainCallDetailArray[sec].companyName}
    <span>Contact Person :{$complainCallDetailArray[sec].contactPerson1}<br/>
      Mobile :{$complainCallDetailArray[sec].mobile1}</span>
   </td>
  <td class="table3" align="left" NOWRAP>{$complainCallDetailArray[sec].categoryName}</td>
  <td class="table3" align="center">{$complainCallDetailArray[sec].targetedDate}</td>
  <td class="table3" align="right">{$complainCallDetailArray[sec].serviceCharge}</td>
  <td class="table3" align="left">{$complainCallDetailArray[sec].remarks}</td>
  <td class="table3" align="right">{$complainCallDetailArray[sec].amountCollected}</td>
  <td class="table3" ><a href="complainService.php?complete=1&&complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="buttonComp">Complete</a></td>
  <td class="table3"><a href="complainService.php?inComplete=1&&complainServiceId={$complainCallDetailArray[sec].complainServiceId}" class="buttonInComp"> InComplete</a></td>
  {sectionelse}
    {$msg}
  {/section}
  </tr>
  </table>
{/if}
<br /><br /><br /><br /><br />
{if $newInstallationMasterId > 0}
  <table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> New Installation List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No. </td>	
    <td class="table1" align='center'><B>Date </td>	
  	<td class="table1" align='center'><B>Customer </td>
  	<td class="table1" align='center'><B>Catogary </td>
  	<td class="table1" align='center'><B>Description </td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>	  
  </tr>
  {assign var="name" value="1"}
  {section name="sec2" loop=$newInstallDetailArray}<!--display variable for sr No-->
  <tr>
    {if $newInstallDetailArray[sec2].display == 1}	
  	<input type="hidden" name="newinstallationMasterId" value="{$newInstallDetailArray[sec2].newinstallationMasterId}" />
  	<td class="table3" align="center">{$name}</td>
  	<input type="hidden" value={$name++}><!--increament Sr.no hidden-->
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].installationDate}</td>
  	<td class="table3" align="center"> {$newInstallDetailArray[sec2].companyName}</td>
    {else}	
  	<td class="table3">&nbsp;</td>  
  	<td class="table3">&nbsp;</td>  
  	<td class="table3">&nbsp;</td>  
    {/if}
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].categoryName}</td>
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].description}</td>
  	{if $newInstallDetailArray[sec2].display == 1}
  		<td class="table3">
  			<a href="newInstallation.php?newInstallComplete=1&newinstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="buttonComp">Complete</a>
  		</td>
  		<td class="table3">
  			<a href="newInstallation.php?newInstallInComplete=1&newinstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="buttonInComp"> InComplete</a>
  		</td>
  	{else}
  		<td class="table3">&nbsp;</td>
  		<td class="table3">&nbsp;</td>	
  	{/if}
  	{sectionelse}
  	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
  	{/section}
  </tr>
  </table>
{/if}
{if $newInstallationMasterId != -1 && $newInstallationMasterId == 0}
<table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> New Installation List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No. </td>	
    <td class="table1" align='center'><B>Date </td>	
  	<td class="table1" align='center'><B>Customer </td>
  	<td class="table1" align='center'><B>Catogary </td>
  	<td class="table1" align='center'><B>Description </td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>	  
  </tr>
  {assign var="name" value="1"}
  {section name="sec2" loop=$newInstallDetailArray}<!--display variable for sr No-->
  <tr>
    {if $newInstallDetailArray[sec2].display == 1}	
  	<input type="hidden" name="newinstallationMasterId" value="{$newInstallDetailArray[sec2].newinstallationMasterId}" />
  	<td class="table3" align="center">{$name}</td>
  	<input type="hidden" value={$name++}><!--increament Sr.no hidden-->
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].installationDate}</td>
  	<td class="table3" align="center"> {$newInstallDetailArray[sec2].companyName}</td>
    {else}	
  	<td class="table3">&nbsp;</td>  
  	<td class="table3">&nbsp;</td>  
  	<td class="table3">&nbsp;</td>  
    {/if}
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].categoryName}</td>
  	<td class="table3" align="left"> {$newInstallDetailArray[sec2].description}</td>
  	{if $newInstallDetailArray[sec2].display == 1}
  		<td class="table3">
  			<a href="newInstallation.php?newInstallComplete=1&newinstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="buttonComp">Complete</a>
  		</td>
  		<td class="table3">
  			<a href="newInstallation.php?newInstallInComplete=1&newinstallationMasterId={$newInstallDetailArray[sec2].newinstallationMasterId}" class="buttonInComp"> InComplete</a>
  		</td>
  	{else}
  		<td class="table3">&nbsp;</td>
  		<td class="table3">&nbsp;</td>	
  	{/if}
  	{sectionelse}
  	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
  	{/section}
  </tr>
  </table>
{/if}
<br /><br /><br /><br /><br />
{if $otherServiceId > 0}
  <table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> Other Service List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No.</td>	
  	<td class="table1" align='center'><B>Customer</td>
  	<td class="table1" align='center'><B>Service Type</td>
  	<td class="table1" align='center'><B>Catogary </td>
  	<td class="table1" align='center'><B>Complain Date</td>
  	<td class="table1" align='center'><B>Targeted Date</td>
  	<td class="table1" align='center'><B>Description</td>
  	<td class="table1" align='center'><B>Important Point</td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>	  
  </tr>
  {assign var="name" value="1"}
  {section name="sec3" loop=$otherServiceArray}<!--display variable for sr No-->
  <tr>
    <td class="table3" align="center">{$smarty.section.sec3.rownum}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].companyName}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].serviceType}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].categoryName}</td>
  	<td class="table3" align="center">{$otherServiceArray[sec3].complainDate}</td>
  	<td class="table3" align="center">{$otherServiceArray[sec3].targetedDate}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].description}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].importantPoint}</td>
  	{if $otherServiceArray[sec3].serviceType == "Demo"}
      <td class="table2"><a href="demo.php?demoComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table2"><a href="demo.php?demoInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{elseif $otherServiceArray[sec3].serviceType == "R&D"}
  	  <td class="table2"><a href="rAndD.php?rAndDComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table2"><a href="rAndD.php?rAndDInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{else}
  	  <td class="table3"><a href="others.php?othersComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table3"><a href="others.php?othersInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{/if}
  	{sectionelse}
  	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
  	{/section}
  </tr>
  </table>
{/if}
{if $otherServiceId != -1 && $otherServiceId == 0}
<table border='0' cellpadding='1' cellspacing='2' align='center'>
  <tr>
    <td class="table1" align="center" colspan="14"><font style="font-size: 16px"><b> Other Service List </b></font></td>
  </tr>
  <tr>
    <td class="table1" align='center'><B>Sr No.</td>	
  	<td class="table1" align='center'><B>Customer</td>
  	<td class="table1" align='center'><B>Service Type</td>
  	<td class="table1" align='center'><B>Catogary </td>
  	<td class="table1" align='center'><B>Complain Date</td>
  	<td class="table1" align='center'><B>Targeted Date</td>
  	<td class="table1" align='center'><B>Description</td>
  	<td class="table1" align='center'><B>Important Point</td>
  	<td class="table1" align='center'>&nbsp;</td>
  	<td class="table1" align='center'>&nbsp;</td>	  
  </tr>
  {assign var="name" value="1"}
  {section name="sec3" loop=$otherServiceArray}<!--display variable for sr No-->
  <tr>
    <td class="table3" align="center">{$smarty.section.sec3.rownum}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].companyName}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].serviceType}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].categoryName}</td>
  	<td class="table3" align="center">{$otherServiceArray[sec3].complainDate}</td>
  	<td class="table3" align="center">{$otherServiceArray[sec3].targetedDate}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].description}</td>
  	<td class="table3" align="left">{$otherServiceArray[sec3].importantPoint}</td>
  	{if $otherServiceArray[sec3].serviceType == "Demo"}
      <td class="table2"><a href="demo.php?demoComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table2"><a href="demo.php?demoInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{elseif $otherServiceArray[sec3].serviceType == "R&D"}
  	  <td class="table2"><a href="rAndD.php?rAndDComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table2"><a href="rAndD.php?rAndDInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{else}
  	  <td class="table3"><a href="others.php?othersComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonComp">Complete</a></td>
  	  <td class="table3"><a href="others.php?othersInComplete=1&otherServiceId={$otherServiceArray[sec3].otherServiceId}" class="buttonInComp"> InComplete</a></td>
  	{/if}
  	{sectionelse}
  	  <tr><td align="center" colspan="6"> <h2><font color="red"><b>{$msg}</b></font></h2></td></tr>
  	{/section}
  </tr>
  </table>
{/if}
{include file="footer.tpl"}